using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public class Pos_SalesReturnMasterManager
{
	public Pos_SalesReturnMasterManager()
	{
	}

    public static List<Pos_SalesReturnMaster> GetAllPos_SalesReturnMasters()
    {
        List<Pos_SalesReturnMaster> pos_SalesReturnMasters = new List<Pos_SalesReturnMaster>();
        SqlPos_SalesReturnMasterProvider sqlPos_SalesReturnMasterProvider = new SqlPos_SalesReturnMasterProvider();
        pos_SalesReturnMasters = sqlPos_SalesReturnMasterProvider.GetAllPos_SalesReturnMasters();
        return pos_SalesReturnMasters;
    }


    public static Pos_SalesReturnMaster GetPos_SalesReturnMasterByID(int id)
    {
        Pos_SalesReturnMaster pos_SalesReturnMaster = new Pos_SalesReturnMaster();
        SqlPos_SalesReturnMasterProvider sqlPos_SalesReturnMasterProvider = new SqlPos_SalesReturnMasterProvider();
        pos_SalesReturnMaster = sqlPos_SalesReturnMasterProvider.GetPos_SalesReturnMasterByID(id);
        return pos_SalesReturnMaster;
    }


    public static int InsertPos_SalesReturnMaster(Pos_SalesReturnMaster pos_SalesReturnMaster)
    {
        SqlPos_SalesReturnMasterProvider sqlPos_SalesReturnMasterProvider = new SqlPos_SalesReturnMasterProvider();
        return sqlPos_SalesReturnMasterProvider.InsertPos_SalesReturnMaster(pos_SalesReturnMaster);
    }


    public static bool UpdatePos_SalesReturnMaster(Pos_SalesReturnMaster pos_SalesReturnMaster)
    {
        SqlPos_SalesReturnMasterProvider sqlPos_SalesReturnMasterProvider = new SqlPos_SalesReturnMasterProvider();
        return sqlPos_SalesReturnMasterProvider.UpdatePos_SalesReturnMaster(pos_SalesReturnMaster);
    }

    public static bool DeletePos_SalesReturnMaster(int pos_SalesReturnMasterID)
    {
        SqlPos_SalesReturnMasterProvider sqlPos_SalesReturnMasterProvider = new SqlPos_SalesReturnMasterProvider();
        return sqlPos_SalesReturnMasterProvider.DeletePos_SalesReturnMaster(pos_SalesReturnMasterID);
    }
}
